<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>
	<!-- content starts -->
	<blockquote class="layui-elem-quote"><{$action}></blockquote>

	<div class="layui-tab layui-tab-card">
		<ul class="layui-tab-title">
			<li <{if isset($type) AND $type == 1}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/1">网校详情</a></li>
			<li <{if isset($type) AND $type == 2}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/2">网校老师</a></li>
			<!-- <li <{if isset($type) AND $type == 3}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/3">网校课程</a></li> -->
			
			<!-- <li <{if $type == 4}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/4">开通题库分类</a></li>
			<li <{if $type == 5}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/5">开通录播课</a></li> -->
			<li <{if isset($type) AND $type == 6}>class="layui-this"<{/if}>><a href="/school/edit/<{$school_info['id']|default:'0'}>/6">网校权限管理</a></li>
			<li <{if isset($type) AND $type == 7}>class="layui-this"<{/if}>><a href="/subject/school_tiku/0/<{$school_info['id']}>">网校题库</a></li>
			<li <{if isset($type) AND $type == 8}>class="layui-this"<{/if}>><a href="/question_topic/index/0/<{$school_info['id']}>">网校问答&话题</a></li>
			<li <{if isset($type) AND $type == 9}>class="layui-this"<{/if}>><a href="/news/index/0/<{$school_info['id']}>">网校资讯</a></li>
			<li <{if isset($type) AND $type == 11}>class="layui-this"<{/if}>><a href="/school_course?school_id=<{$school_info['id']}>">网校课程</a></li>
			<li <{if isset($type) AND $type == 12}>class="layui-this"<{/if}>><a href="/school/order_record/<{$school_info['id']}>">网校消费记录</a></li>
			<li <{if isset($type) AND $type == 13}>class="layui-this"<{/if}>><a href="/user/index/0/0/0/1/0/0/<{$school_info['id']}>">学员列表</a></li>
		</ul>
	</div>

	<fieldset class="layui-elem-field">
  		<legend>按条件搜索</legend>
  		<div class="layui-field-box">
			<form class="layui-form layui-form-pane1" method="post" action="<{$current_url}>">
				<{assign var="pid" value=$conditions['pid']|default:"all"}>
				<div class="layui-form-item">
					<div class="layui-inline">
						<select name="school_id">
							<option value="0">网校筛选</option>
							<{foreach from=$school_list item=school}>
							<option value="<{$school.id}>" <{if $data.school_id == $school.id}>selected<{/if}>><{$school.school_name}></option>
							<{/foreach}>
					  	</select>
				  	</div>
			    	<div class="layui-inline">
			    		<input type="text" name="search" placeholder="用户昵称或手机号码" value="<{if isset($data['search']) AND $data['search']}><{$data['search']}><{/if}>" class="layui-input">
			    	</div>
			    	
			    	<div class="layui-inline">
			    		<button type="submit" class="layui-btn">搜索</button>
			    		
			    	</div>
		    	</div>
			</form>
  		</div>
	</fieldset>
	<form class="layui-form layui-form-pane1" method="post" action="/user/update_sorts" delete_action="/user/delete">
		<table class="layui-table" lay-even lay-skin="row">
            <!-- <colgroup>
                <col />
                <col width="170" />
                <col width="200" />
                <col width="200" />
                <col width="300" />
                <col width="200" />
                <col width="120" />
                <col width="100" />
                <col width="125" />
            </colgroup> -->
		  	<thead>
			  	<tr>
				  	<th>昵称</th>
				  	<!-- <th>性别
			  			<{if $data['sort'] eq 1 and $data['asc_des'] eq 1}>
				  		<a href ="<{base_url()}>user/index/<{$data['search']}>/1/2/<{$is_all}>/<{$data['limit']}>"><span title="升序" class="icon icon-green icon-arrowthick-n"></span></a>
				  		<{else}>
						<a href ="<{base_url()}>user/index/<{$data['search']}>/1/1/<{$is_all}>/<{$data['limit']}>"><span title="降序" class="icon icon-green icon-arrowthick-s"></span></a>
						<{/if}>
				  	</th> -->
					<th>手机号码</th>
				  	<!-- <th>认证状态</th> -->
					<th>学校</th>
				  	<th>推荐人</th>
				  	<th>一级同学</th>
				  	<th>二级级同学</th>
				  	<th>三级同学</th>
					
			  	</tr>
		  	</thead>   
		  	<tbody>
		  	<{foreach from=$user_list item=item}>
		  	<tr>

		  		<td class="center"><{$item['nick']}></td>
		  		<!-- <td class="center">
		  			<{if $item['sex'] == 0}>女<{else}>男<{/if}>
		  		</td> -->
				<td class="center"><{$item['mobile']}></td>
		  		<!-- <td class="center">
		  			<{if $item['verified_anchor'] == 1}>
		  			审核通过
		  			<{elseif $item['verified_anchor'] == 2}>
		  			审核拒绝
		  			<{elseif $item['verified_anchor'] == 9}>
		  			未申请审核
		  			<{/if}>
		  		</td> -->
				<td class="center">
		  			<{$item['school_name']}>
		  		</td>
		  		<td class="center">
		  			<{$item['parent1_mobile']}>
		  		</td>
		  		<td class="center">
		  			<{$item['parent1_count']}>
		  		</td>
		  		<td class="center">
		  			<{$item['parent2_count']}>
		  		</td>
		  		<td class="center">
		  			<{$item['parent3_count']}>
		  		</td>
				<!-- <{if $is_all == 1}>
		  		<td class="center">
					<a class="layui-btn layui-btn-primary layui-btn-small" href="/user/edit/<{$item['id']}>" target="_blank"><i class="layui-icon"></i></a>
					<a class="layui-btn layui-btn-primary layui-btn-small delete_data" href="/user/delete/<{$item['id']}>"><i class="layui-icon"></i></a>
				</td>
				<{/if}> -->
		  	</tr>
	  	<{/foreach}>
		  	<{if $user_list|count eq 0}>
		  		<tr>
			  		<td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="8">
						赞无数据！
					</td>
			  	</tr>
		  	<{/if}>
		  <!-- 	<tr>
				<td class="center" colspan="7">
					<input type="checkbox" lay-filter="checkbox_all" title="全选">
					<button id="delete" class="layui-btn layui-btn-primary layui-btn-small" style="margin-top:4px;"><i class="layui-icon"></i> 批量删除</button>
				</td>
			</tr> -->
	  		</tbody>
	  	</table>
  	</form>
  	<div class="layui-box layui-laypage layui-laypage-default">
			<{$pagination}>
		</div>
<{include file="public_html/footer.html"}>